package adapletplugin.editors;

import org.eclipse.jface.viewers.IStructuredContentProvider;
import org.eclipse.jface.viewers.Viewer;

import adapletplugin.editors.input.MapTableInput;

public class MapTableContentProvider implements IStructuredContentProvider
{

	@Override
	public void dispose()
	{

	}

	@Override
	public void inputChanged(Viewer viewer, Object oldInput, Object newInput)
	{
		viewer.refresh();
	}

	@Override
	public Object[] getElements(Object inputElement)
	{
		MapTableInput mapTableInput = (MapTableInput) inputElement;

		return mapTableInput.getData();
	}

}
